package com.celesea.workflow.core.entity;

import com.celesea.framework.entity.BusEntity;
import com.celesea.framework.util.Version;

import javax.persistence.Column;
import javax.persistence.Table;

/**
 * 流程动作，对应节点流程图中的连线
 * @author JackYuan
 * @create 2017-11-05 16:28
 */
@Version
@Table(name = "wf_node_action")
public class WorkflowNodeAction extends BusEntity {

    @Column(name = "`wf_id`", columnDefinition = "流程id")
    protected String wfId;

    @Column(name = "`wf_node_id`", columnDefinition = "流程节点Id")
    protected String wfNodeId;

    @Column(name = "`to_node_id`", columnDefinition = "流转到哪个流程节点")
    protected String toNodeId;

    @Column(name = "`name`", columnDefinition = "名称")
    protected String name;

    @Column(name = "`sort`", columnDefinition = "排序")
    protected Integer sort;

    public String getWfNodeId() {
        return wfNodeId;
    }

    public void setWfNodeId(String wfNodeId) {
        this.wfNodeId = wfNodeId;
    }

    public String getToNodeId() {
        return toNodeId;
    }

    public void setToNodeId(String toNodeId) {
        this.toNodeId = toNodeId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public String getWfId() {
        return wfId;
    }

    public void setWfId(String wfId) {
        this.wfId = wfId;
    }
}
